#include "sys_suggestion.h"
#include "ui_sys_suggestion.h"
#include "notice_S_and_ass.h"
#include <QApplication>
#include<QStringListModel>
#include<QVBoxLayout>
#include<QWidget>
#include<QPushButton>
#include<QListView>
sys_suggestion::sys_suggestion(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::sys_suggestion)
{
    ui->setupUi(this);
    connect(ui->pushButton,&QPushButton::clicked,[=](){
        //发一个信号过去
        emit this->back();
    });
   ui->listWidget->clear();
   for(const QString&itemText:notice_S_and_ass::vis_sys_ass)
       {QListWidgetItem *newItem=new QListWidgetItem(itemText);
                   ui->listWidget->addItem(newItem);
       }
       }

sys_suggestion::~sys_suggestion()
{
    delete ui;
}

